<!DOCTYPE html>
<html lang="zh-CN">
    <head>
        <meta charset="UTF-8" />
        <title>18_动画-案例练习</title>
        <style>

            @keyframes star {
                0% {

                }

                100% {
                    background-position: -2800px 0;
                }
            }


            div {
                width: 100px;
                height: 100px;
                /* border: 1px solid black; */
                background: url(./img/star-sprite.png) no-repeat;

                animation: star .5s steps(28) infinite;
            }



        </style>
    </head>
    <body>
        <div></div>
    </body>
</html>